<html>
<head>
  <link rel="stylesheet" type="text/css" href="css/tips.css">
</head>
<body>
<p>The Extract Constant refactoring creates a constant which holds the selected expression as the value and replaces its occurrences by reference to this newly created constant.
</p>
<p>
  In order to invoke the refactoring, select an expression to be replaced with a constant or place the caret over an expression and press <span class="shortcut">&shortcut:IntroduceConstant;</span>
  (<span class="control">Refactor | Extract -> Constant... </span>):
</p>
<p class="image"><img src="images/extract_constant_1.png"></p>
<p>This will result in the following:</p>
<p class="image"><img src="images/extract_constant_2.png"></p>
</body>
</html>
